package xyz.jcat.seata.example.points.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import xyz.jcat.seata.example.api.IPointsService;
import xyz.jcat.seata.example.api.dto.PointsIncrDto;
import xyz.jcat.seata.example.points.service.IUserPointsService;

@DubboService
public class PointsService implements IPointsService {

    @Autowired
    private IUserPointsService userPointsService;

    @Override
    public void incr(PointsIncrDto pointsIncrDto) {
        userPointsService.incr(pointsIncrDto);
    }
}
